package cn.billy.org.service;



import cn.billy.basic.utils.PageList;
import cn.billy.org.domain.Department;
import cn.billy.org.query.DepartmentQuery;

import java.util.List;
/**
* @Description: IDepartmentService
* @Author: Billy
* @Version: 1.0
* @Date:  2022/6/21 21:20
*/
public interface IDepartmentService {

    /*
    * @Title: loadAll
    * @Description: 查询所有
    * @Author: Billy
    * @Version: 1.0
    * @Date:  2022/6/21 21:16
    * @Parameters:
    * @Return List
    */
    List<Department> loadAll();

    /*
    * @Title: getById
    * @Description: 根据Id查询
    * @Author: Billy
    * @Version: 1.0
    * @Date:  2022/6/21 21:16
    * @Parameters:
    * @Return Department
    */
    Department getById(Long id);

    /*
    * @Title: remove
    * @Description: 根据Id删除
    * @Author: Billy
    * @Version: 1.0
    * @Date:  2022/6/21 21:18
    * @Parameters:
    * @Return void
    */
    void remove(Long id);

    /*
    * @Title: save
    * @Description: 新增
    * @Author: Billy
    * @Version: 1.0
    * @Date:  2022/6/21 21:18
    * @Parameters:
    * @Return void
    */
    void save(Department department);

    /*
    * @Title: update
    * @Description: 根据Id修改
    * @Author: Billy
    * @Version: 1.0
    * @Date:  2022/6/21 21:19
    * @Parameters:
    * @Return void
    */
    void update(Department department);

   /*
   * @Title: queryData
   * @Description: 分页+高级查询
   * @Author: Billy
   * @Version: 1.0
   * @Date:  2022/6/21 21:19
   * @Parameters:
   * @Return PageList
   */
    PageList<Department> queryData(DepartmentQuery departmentQuery);
}
